//
//  ProductParmsTableViewCell.m
//  MyNewProject
//
//  Created by ZhangYuan on 2019/1/28.
//  Copyright © 2019年 sun. All rights reserved.
//

#import "ProductParmsTableViewCell.h"

@implementation ProductParmsTableViewCell
- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self addSubview:self.parmName];
        [self addSubview:self.parmContent];
        [self addSubview:self.lineView];
    }
    return self;
}
-(UILabel *)parmName{
    if (!_parmName) {
        _parmName = [[UILabel alloc]initWithFrame:CGRectMake(20, 0, 100,45)];
        _parmName.textColor = [UIColor darkTextColor];
        _parmName.font = [UIFont systemFontOfSize:14];
    }
    return _parmName;
}
-(UILabel *)parmContent{
    if (!_parmContent) {
        _parmContent = [[UILabel alloc]initWithFrame:CGRectMake(140, 0, SCREEN_WIDTH - 160, 45)];
        _parmContent.backgroundColor = [UIColor clearColor];
        _parmContent.textAlignment = NSTextAlignmentRight;
        _parmContent.textColor = [UIColor darkGrayColor];
        _parmContent.font = [UIFont systemFontOfSize:14];
    }
    return _parmContent;
}
-(UIView *)lineView{
    if (!_lineView) {
        _lineView = [[UIView alloc]initWithFrame:CGRectMake(0, 44, SCREEN_WIDTH, 1)];
        _lineView.backgroundColor = BackColor;
    }
    return _lineView;
}
@end
